package com.msl.debezium.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseDto implements Serializable {
    @ApiModelProperty(notes="创建人",position = 1,required=false,example="")
    private String createdBy;

    /**
     * JsonFormat格式化后端传来的日期
     */
    @ApiModelProperty(notes="创建时间",position = 2,required=false,example="")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @ApiModelProperty(notes="修改人",position = 3,required=false,example="")
    private String updatedBy;

    @ApiModelProperty(notes="修改时间",position = 4,required=false,example="")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") //格式化后端传来的日期
    private Date updatedAt;
}
